import { post } from '@/utils/request'

// 查询未读消息数量
export const countUnReadSysRecords = p => post(`/service-msg/msg/sysMsgRecord/v1/countUnReadRecords`, p)
// 查询未读消息列表
export const listAllUnReadSysRecords = p => post(`/service-msg/msg/sysMsgRecord/v1/listAllUnReadRecords`, p)
// 详情
export const viewSysMsgRecord = p => post(`/service-msg/msg/sysMsgRecord/v1/view/${p}`, p)
// 设置未读状态
export const changeSysMsgReadStatus = p => post(`/service-msg/msg/sysMsgRecord/v1/changeReadStatus/${p.id}/${p.status}`, p)

// 查询未读消息列表
export const getMsgRecordList = p => post(`/service-msg/msg/msgRecord/v1/pageList`, p)
// 详情
export const viewMsgRecord = p => post(`/service-msg/msg/msgRecord/v1/view/${p}`, p)
// 详情
export const listAttachsByMsgId = p => post(`/service-msg/msg/msgRecord/v1/listAttachsByMsgId/${p.msgId}`, p)
// 设置未读状态
export const changeReadStatus = p => post(`/service-msg/msg/msgRecord/v1/changeReadStatus/${p.id}/${p.status}`, p)
